MQSystem.clearLog()
doc = MQSystem.getDocument()
num = doc.numObject
for oi in range(0,num):
	obj = doc.object[oi]
	if obj is None: continue
	numVert = obj.numVertex
	numFace = obj.numFace
	for fi in range(numFace):
		num = obj.face[fi].numVertex
		if num >= 3:
			for j in range(num):
				if doc.isSelectLine(oi, fi, j):
					doc.addSelectVertex(oi,obj.face[fi].index[j])
					doc.addSelectVertex(oi,obj.face[fi].index[(j+1)%num])